﻿using FlashPay.Entity.Response.Company;
using FlashPay.Entity.Response.Role;
using System;
using System.Collections.Generic;
using System.Text;

namespace FlashPay.Entity.Response.User
{
    public class UserInfoResponse
    {
        public int UId { get; set; }
        public int UCompanyId { get; set; }
        public string ULoginName { get; set; }
        public string UPwd { get; set; }
        public DateTime CreateDate { get; set; }
        public string UEmail { get; set; }
        public string UTelephone { get; set; }
        public sbyte UStatus { get; set; }
        public string UDescription { get; set; }
        public string UUiconfig { get; set; }
        public string USecretKey { get; set; }
        public sbyte ULoggedIn { get; set; }
        public sbyte UShowQR { get; set; }

        /// <summary>
        /// 是否有(编辑权限功能)
        /// </summary>
        public bool IsAuth { get; set; }

        /// <summary>
        /// 公司名称
        /// </summary>
        public string CompanyName { get; set; }

        /// <summary>
        /// 用户名称
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 公司列表
        /// </summary>
        public List<CompanyResponse> CompanyResponse { get; set; }

        /// <summary>
        /// 公司列表
        /// </summary>
        public List<CompanyResponse> AuthCompanyResponse { get; set; }

        /// <summary>
        /// 已选择角色列表
        /// </summary>
        public List<RoleResponse> RoleResponse { get; set; }

    }

    public class SelectedRole
    {
        /// <summary>
        /// 系统编号
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 选中
        /// </summary>
        public bool Selected { get; set; }
    }
}
